package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.CompetitionRelevanceCreateValidate;
import com.mdd.admin.validate.CompetitionRelevanceUpdateValidate;
import com.mdd.admin.validate.CompetitionRelevanceSearchValidate;
import com.mdd.admin.vo.CompetitionRelevanceListedVo;
import com.mdd.admin.vo.CompetitionRelevanceDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 竞业关联服务接口类
 * @author LikeAdmin
 */
public interface ICompetitionRelevanceService {

    /**
     * 竞业关联列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<CompetitionRelevanceListedVo>
     */
    PageResult<CompetitionRelevanceListedVo> list(PageValidate pageValidate, CompetitionRelevanceSearchValidate searchValidate);

    /**
     * 竞业关联详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return CompetitionRelevanceDetailVo
     */
    CompetitionRelevanceDetailVo detail(Integer id);

    /**
     * 竞业关联新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(CompetitionRelevanceCreateValidate createValidate);

    /**
     * 竞业关联编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(CompetitionRelevanceUpdateValidate updateValidate);

    /**
     * 竞业关联删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
